package com.bdjk.bdmw.InfoGath.business.nurse.service.impl;

import com.bdjk.bdmw.InfoGath.business.nurse.dao.NursePositionDAO;
import com.bdjk.bdmw.InfoGath.business.nurse.dao.impl.NursePositionDAOImpl;
import com.bdjk.bdmw.InfoGath.business.nurse.model.NursePositionModel;
import com.bdjk.bdmw.InfoGath.business.nurse.service.NursePositionService;

public class NursePositionServiceImpl implements NursePositionService {

	private NursePositionDAO dao=new NursePositionDAOImpl();
	@Override
	public int saveMessage(NursePositionModel model) {
		// TODO Auto-generated method stub
		int positionId=dao.savePosition(model);
		dao.saveExtension(model, positionId);
		return 0;
	}

	@Override
	public int savePosition(NursePositionModel model) {
		// TODO Auto-generated method stub
	   return dao.savePosition(model);
	}

}
